package com.itheima.reggie;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;


/**
 * 搭建工程环境 第四步：启动类
 * 搭建工程环境 第五步：将静态前端资源复制到resource目录下
 */
@Slf4j
@SpringBootApplication
@ServletComponentScan //完善登录功能 第二部：扫描filter过滤器实现注册
@EnableTransactionManagement
@EnableCaching //开启Spring Cache注解方式是缓存功能
public class ReggieApplication {
    public static void main(String[] args){
        SpringApplication.run(ReggieApplication.class,args);
        log.info("项目启动成功！");
    }
}
